<?php !defined('DYHB_PATH') && exit; /* DoYouHaoBaby Framework 模板缓存文件 生成时间：2011-05-31 21:54:21  */ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>DoYouHaoBaby示例：CURD操作</title>
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/common.css'>
<script type="text/javascript" src="<?php echo __LIBCOM__;?>/Js/Vendor/Jquery.js"></script>
<script type="text/javascript" src="<?php echo __LIBCOM__;?>/Js/Dyhb.package.js"></script>
 </head>
 <body>

 <script language="JavaScript">
 <!--
	function save(){

		Dyhb.AjaxSubmit('form1','__URL__/update','result',complete);
	}
	function complete(data,status){

		if (status==1){

		   window.setTimeout(function (){window.location.href='__URL__',20000});
		}
	}
 //-->
 </script>

 <div class="main">
 <h2>DoYouHaoBaby示例之：CURD操作</h2>
 <div class="title">编辑数据表单</div>
<div id="result" class="none result" style="font-family:微软雅黑,Tahoma;letter-spacing:2px"></div>
   <form id="form1" method='post' action="">
 <table cellpadding=2 cellspacing=2>

 <tr>
	<td class="tRight" width="12%">标题：</td>
	<td class="tLeft" ><input type="text" name="form_title" style="height:23px" class="large bLeft" value="<?php echo( $arrValue['form_title'] ); ?>"></td>
 </tr>
  <tr>
	<td class="tRight" >邮箱：</td>
	<td class="tLeft" ><input type="text" name="form_email" style="height:23px" class="huge bLeft" value="<?php echo( $arrValue['form_email'] ); ?>"></td>
 </tr>
 <tr>
	<td class="tRight tTop" >内容：</td>
	<td><textarea name="form_content" class="huge bLeft" rows="8" cols="25"><?php echo( $arrValue['form_content'] ); ?></textarea></td>
 </tr>
 <tr>
	<td><input type="hidden" name="ajax" value="1"><input type="hidden" name="id" value="<?php echo( $nId ); ?>"></td>
	<td><input type="button" onClick="save()"  value="保 存"> <input type="reset"  value="清 空"></td>
 </tr>
 </table>
   </form>
</div>
 </body>
</html>
